package com.ygqh.baby.model;

import com.ygqh.baby.ao.*;
import com.ygqh.baby.po.YgLogistics;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class YgOrderInfoModel {

    private Long orderId;

    private String wdtOrderCode;

    private Long userId;

    private Long supplierId;

    private Long parentId;

    private BigDecimal totalPrice;

    private BigDecimal productPrice;

    private BigDecimal youhuijuanPrice;

    private BigDecimal manjianPrice;

    private BigDecimal newCustomDisPrice;

    private BigDecimal packDisPrice;

    private BigDecimal groupDisPrice;

    private BigDecimal bmdisPrice;

    private BigDecimal paidPrice;

    private BigDecimal expressPrice;

    private BigDecimal accountPrice;

    private BigDecimal vipDisPrice;

    private OrderStatus orderStatus;

    private PayType payType;

    private String receiver;

    private String provinceName;

    private String cityName;

    private String areaName;

    private String address;

    private String telPhone;

    private String postCode;

    private String sourceCode;

    private Long releationId;

    private OrderType orderType;

    private Date createTime;

    private CommentStatus commentStatus;

    private String openId;

    private List<YgOrderDetailModel> detailModels;

    private List<YgLogistics> logisticsList;

    private Date paidTime;

    private AppType appType;

    private String platformNo;

    private String userRemark;

    public Long getReleationId() {
        return releationId;
    }

    public void setReleationId(Long releationId) {
        this.releationId = releationId;
    }

    public BigDecimal getBmdisPrice() {
        return bmdisPrice;
    }

    public void setBmdisPrice(BigDecimal bmdisPrice) {
        this.bmdisPrice = bmdisPrice;
    }

    public String getWdtOrderCode() {
        return wdtOrderCode;
    }

    public void setWdtOrderCode(String wdtOrderCode) {
        this.wdtOrderCode = wdtOrderCode;
    }

    public OrderType getOrderType() {
        return orderType;
    }

    public void setOrderType(OrderType orderType) {
        this.orderType = orderType;
    }

    public BigDecimal getGroupDisPrice() {
        groupDisPrice = groupDisPrice == null ? BigDecimal.ZERO : groupDisPrice;
        return groupDisPrice.add(vipDisPrice);
    }

    public void setGroupDisPrice(BigDecimal groupDisPrice) {
        this.groupDisPrice = groupDisPrice;
    }

    public BigDecimal getAccountPrice() {
        return accountPrice;
    }

    public void setAccountPrice(BigDecimal accountPrice) {
        this.accountPrice = accountPrice;
    }

    public List<YgLogistics> getLogisticsList() {
        return logisticsList;
    }

    public void setLogisticsList(List<YgLogistics> logisticsList) {
        this.logisticsList = logisticsList;
    }

    public BigDecimal getNewCustomDisPrice() {
        return newCustomDisPrice;
    }

    public void setNewCustomDisPrice(BigDecimal newCustomDisPrice) {
        this.newCustomDisPrice = newCustomDisPrice;
    }

    public BigDecimal getPackDisPrice() {
        return packDisPrice;
    }

    public void setPackDisPrice(BigDecimal packDisPrice) {
        this.packDisPrice = packDisPrice;
    }

    public CommentStatus getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(CommentStatus commentStatus) {
        this.commentStatus = commentStatus;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getYouhuijuanPrice() {
        return youhuijuanPrice;
    }

    public void setYouhuijuanPrice(BigDecimal youhuijuanPrice) {
        this.youhuijuanPrice = youhuijuanPrice;
    }

    public BigDecimal getManjianPrice() {
        return manjianPrice;
    }

    public void setManjianPrice(BigDecimal manjianPrice) {
        this.manjianPrice = manjianPrice;
    }

    public BigDecimal getPaidPrice() {
        return paidPrice;
    }

    public void setPaidPrice(BigDecimal paidPrice) {
        this.paidPrice = paidPrice;
    }

    public BigDecimal getExpressPrice() {
        return expressPrice;
    }

    public void setExpressPrice(BigDecimal expressPrice) {
        this.expressPrice = expressPrice;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

    public PayType getPayType() {
        return payType;
    }

    public void setPayType(PayType payType) {
        this.payType = payType;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getSourceCode() {
        return sourceCode;
    }

    public void setSourceCode(String sourceCode) {
        this.sourceCode = sourceCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<YgOrderDetailModel> getDetailModels() {
        return detailModels;
    }

    public void setDetailModels(List<YgOrderDetailModel> detailModels) {
        this.detailModels = detailModels;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public BigDecimal getVipDisPrice() {
        return vipDisPrice;
    }

    public void setVipDisPrice(BigDecimal vipDisPrice) {
        this.vipDisPrice = vipDisPrice;
    }

    public Date getPaidTime() {
        return paidTime;
    }

    public void setPaidTime(Date paidTime) {
        this.paidTime = paidTime;
    }

    public AppType getAppType() {
        return appType;
    }

    public void setAppType(AppType appType) {
        this.appType = appType;
    }

    public String getPlatformNo() {
        return platformNo;
    }

    public void setPlatformNo(String platformNo) {
        this.platformNo = platformNo;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public void setUserRemark(String userRemark) {
        this.userRemark = userRemark;
    }
}